#pragma once

#include <QtWidgets/QMainWindow>
#include <qtcpserver.h>
#include <qlist.h>
#include "ui_HLMHub.h"
#include "FramelessHelper/Widgets/framelessmainwindow.h"
#include "qcustomplot.h"
#include "SamplerView.h"

FRAMELESSHELPER_USE_NAMESPACE

class HLMHub : public FramelessMainWindow
{
    Q_OBJECT

public:
    HLMHub(QWidget *parent = nullptr);
    ~HLMHub();

    
private slots:
    void onNewConnection();
    void updatePlotLayout();
    void closeSamplerView();

private:
    Ui::HLMHubClass ui;
    QList<SamplerView*> m_samplerList;
    QTcpServer* m_server;
    QCustomPlot* m_plot;
};
